package com.lfd.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lfd.mapper.LunBoProductMapper;
import com.lfd.service.LunBoProductService;
import com.lfd.vo.ProductVo;
@Service
public class LunBoProductServiceImpl implements LunBoProductService {
	@Autowired
private LunBoProductMapper lunProductMapper;
	@Override
	public List<ProductVo> getlun(ProductVo productVo, Integer page, Integer limit) {
		List<ProductVo> getlun = lunProductMapper.getlun(productVo, (page - 1) * limit, limit);
		return getlun;
	}
	/**
	 * 修改
	 */
	@Override
	public void update(List<Long> ids) {
		lunProductMapper.update(ids);
		
	}
	/**
	 * 设置轮播图
	 */
	@Override
	public void szlun(List<Long> ids) {
		lunProductMapper.szlun(ids);
		
	}

}
